//
//  UIImageView+Extension.swift
//  weibo
//
//  Created by ForeverOSS on 16/2/14.
//  Copyright © 2016年 foreveross. All rights reserved.
//

import UIKit

extension UIImageView{

    /// 使用图像名称创建 UIImageView
    ///
    /// - parameter imageName: imageName
    ///
    /// - returns: UIImageView
    
    convenience init(imageName:String){
    
        self.init(image:UIImage(named: imageName))
        
        sizeToFit()
        
    }
}
